<%@ page import="com.opensymphony.xwork2.util.ValueStack" %><%--
  Created by IntelliJ IDEA.
  User: app
  Date: 2018/4/15
  Time: 下午5:04
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>图书</title>
</head>
<body>
<table border="1" width="360">
    <caption>我的图书</caption>
    <s:iterator value="bookList" status="index">

        <s:form action="bookDetailAction" method="post">
            <input type="hidden" class="hidden" id="bookId" name="bookId">

        <s:if test="#index.odd == true">
            <tr style="background-color: aqua">
        </s:if>
        <s:else>
            <tr>
        </s:else>
                <td>书名</td>
            <%--<s:property value="bookName"/>--%>
                <%--<td><a href="bookDetail.jsp" onclick="detail($(bookID))">阿斯顿撒的 </a></td>--%>
                <td><s:property value="bookName"/></td>
            </tr>
        </s:form>
    </s:iterator>
</table>
</body>
</html>






<script>
    function detail(bookId) {
        ${"#bookId"}.value=bookId;
    }
</script>